package com.rimi.lzhg.dao;

import com.rimi.lzhg.entry.Order;
import com.rimi.lzhg.entry.OrderExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {

    boolean updateOrderMenu(@Param("orderId") Integer orderId,@Param("menuId") Integer menuId,@Param("number") Integer number);

    Order getOrderByUserIdAndType(Order order);

    int insertOrderMenu(Order order);

    int countByExample(OrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    List<Order> selectByExample(OrderExample example);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    boolean insertOrder(Order order);
}